<template>
  <div style="padding:15px">
    <el-tabs type="border-card" v-model="active">
      <el-tab-pane label="工艺产品" name="1">
        <tab2 ref='tab2'></tab2>
      </el-tab-pane>
      <el-tab-pane label="工艺步骤" name="2">
        <tab1 ref='tab1'></tab1>
      </el-tab-pane>

      <!-- <el-tab-pane label="Config" name="2">Config</el-tab-pane>
    <el-tab-pane label="Role" name="3">Role</el-tab-pane>
    <el-tab-pane label="Task" name="4">Task</el-tab-pane> -->
    </el-tabs>
  </div>
</template>

<script>
import tab1 from '../basicdata/Bas_RouteControl.vue'
import tab2 from '../basicdata/Bas_RouteUsage.vue'
export default {
  components: {
    tab1,
    tab2
  },
  data() {
    return {
      active: '1'
    }
  },
  methods: {
    topRowClick(row) {
      this.$refs.tab1.$refs.grid.search()
      this.$refs.tab2.$refs.grid.search()
      this.$refs.tab2.$refs.grid.initDicKeys()
      //查询界面点击行事件
    },
  }
}
</script>

<style></style>
